﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000C39 RID: 3129
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MusicRhythmFinishLevelScRsp : IMessage<MusicRhythmFinishLevelScRsp>, IMessage, IEquatable<MusicRhythmFinishLevelScRsp>, IDeepCloneable<MusicRhythmFinishLevelScRsp>, IBufferMessage
	{
		// Token: 0x17002773 RID: 10099
		// (get) Token: 0x06008BE9 RID: 35817 RVA: 0x001744E9 File Offset: 0x001726E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MusicRhythmFinishLevelScRsp> Parser
		{
			get
			{
				return MusicRhythmFinishLevelScRsp._parser;
			}
		}

		// Token: 0x17002774 RID: 10100
		// (get) Token: 0x06008BEA RID: 35818 RVA: 0x001744F0 File Offset: 0x001726F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MusicRhythmFinishLevelScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002775 RID: 10101
		// (get) Token: 0x06008BEB RID: 35819 RVA: 0x00174502 File Offset: 0x00172702
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MusicRhythmFinishLevelScRsp.Descriptor;
			}
		}

		// Token: 0x06008BEC RID: 35820 RVA: 0x00174509 File Offset: 0x00172709
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MusicRhythmFinishLevelScRsp()
		{
		}

		// Token: 0x06008BED RID: 35821 RVA: 0x00174511 File Offset: 0x00172711
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MusicRhythmFinishLevelScRsp(MusicRhythmFinishLevelScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.levelId_ = other.levelId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008BEE RID: 35822 RVA: 0x00174542 File Offset: 0x00172742
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MusicRhythmFinishLevelScRsp Clone()
		{
			return new MusicRhythmFinishLevelScRsp(this);
		}

		// Token: 0x17002776 RID: 10102
		// (get) Token: 0x06008BEF RID: 35823 RVA: 0x0017454A File Offset: 0x0017274A
		// (set) Token: 0x06008BF0 RID: 35824 RVA: 0x00174552 File Offset: 0x00172752
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17002777 RID: 10103
		// (get) Token: 0x06008BF1 RID: 35825 RVA: 0x0017455B File Offset: 0x0017275B
		// (set) Token: 0x06008BF2 RID: 35826 RVA: 0x00174563 File Offset: 0x00172763
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint LevelId
		{
			get
			{
				return this.levelId_;
			}
			set
			{
				this.levelId_ = value;
			}
		}

		// Token: 0x06008BF3 RID: 35827 RVA: 0x0017456C File Offset: 0x0017276C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MusicRhythmFinishLevelScRsp);
		}

		// Token: 0x06008BF4 RID: 35828 RVA: 0x0017457A File Offset: 0x0017277A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MusicRhythmFinishLevelScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.LevelId == other.LevelId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008BF5 RID: 35829 RVA: 0x001745B8 File Offset: 0x001727B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.LevelId != 0U)
			{
				num ^= this.LevelId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008BF6 RID: 35830 RVA: 0x00174610 File Offset: 0x00172810
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008BF7 RID: 35831 RVA: 0x00174618 File Offset: 0x00172818
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008BF8 RID: 35832 RVA: 0x00174624 File Offset: 0x00172824
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this.LevelId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.LevelId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008BF9 RID: 35833 RVA: 0x00174680 File Offset: 0x00172880
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.LevelId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.LevelId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008BFA RID: 35834 RVA: 0x001746D8 File Offset: 0x001728D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MusicRhythmFinishLevelScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.LevelId != 0U)
			{
				this.LevelId = other.LevelId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008BFB RID: 35835 RVA: 0x00174728 File Offset: 0x00172928
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008BFC RID: 35836 RVA: 0x00174734 File Offset: 0x00172934
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 48U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.LevelId = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400357E RID: 13694
		private static readonly MessageParser<MusicRhythmFinishLevelScRsp> _parser = new MessageParser<MusicRhythmFinishLevelScRsp>(() => new MusicRhythmFinishLevelScRsp());

		// Token: 0x0400357F RID: 13695
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003580 RID: 13696
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04003581 RID: 13697
		private uint retcode_;

		// Token: 0x04003582 RID: 13698
		public const int LevelIdFieldNumber = 6;

		// Token: 0x04003583 RID: 13699
		private uint levelId_;
	}
}
